import Taro from "@tarojs/taro";
import { defineStore } from "pinia";

interface GlobalStoreState {
  systemInfo?: Taro.getSystemInfoSync.Result;
  isLogin: boolean;
}

export const useGlobalStore = defineStore("globalStore", {
  state: (): GlobalStoreState => {
    return {
      systemInfo: undefined,
      isLogin: false,
    };
  },
  actions: {
    // 获取枚举
    async getMap() {
      // const res = await getMap();

      // this.map = res.data;
    },
  },
});
